﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PatrolTaskGrid.aspx.cs" Inherits="FantastPlatform.Decision.UI.PatrolTaskGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        var ptg = new FantastPlatform.UI.PatrolTaskGrid({
            renderTo: 'ptg_div',
            url: '../Service/PatrolTaskViewService.aspx?Action=Search',
            width: tabs.getInnerWidth() - 5,
            height: tabs.getInnerHeight() - 5,
            border: false,
            tbar: [{
                text: '新增调警指令',
                iconCls: 'add',
                tooltip: {
                    text: '新增调警指令',
                    autoHide: true
                },
                handler: function () { ptg.onAddPatrolTaskClick(); }
            }, '-', {
                text: '编辑',
                iconCls: 'edit',
                tooltip: {
                    text: '选择要编辑的调警指令',
                    autoHide: true
                },
                handler: function () { ptg.onEditPatrolTaskClick(); }
            }, 
            '-', {
                text: '复制',
                iconCls: 'copy',
                tooltip: {
                    text: '复制调警指令',
                    title: '选择要复制的调警指令',
                    autoHide: true
                },
                handler: function () { ptg.onCopyPatrolTaskClick(); }
            },
             '-', {
                text: '删除',
                iconCls: 'delete',
                tooltip: {
                    text: '删除选中的调警指令',
                    title: '删除选中的调警指令',
                    autoHide: true
                },
                handler: function () { ptg.onDeleteClick(); }
            }, '-', {
                text: '刷新',
                iconCls: 'updata',
                tooltip: {
                    text: '更新',
                    title: '重新更新列表内容',
                    autoHide: true
                },
                handler: function () { ptg.onUpdataClick(); }
            }]
        });
        ptg.addListener('rowdblclick', function () { ptg.onEditPatrolTaskClick(); });
        ptg.onUpdataClick();
    </script>
</head>
<body>
    <div id="ptg_div">
    </div>
</body>
</html>
